package com.tyqx.biz;

import com.tyqx.biz.controller.eth.scheduler.SchedulerEthInfo;
import com.tyqx.biz.controller.eth.scheduler.SchedulerEthInfoByDay;
import com.tyqx.biz.controller.eth.scheduler.SchedulerStopBlockInterval;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.data.mongo.MongoDataAutoConfiguration;
import org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration;
import org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Import;
import org.springframework.data.mongodb.repository.config.EnableMongoRepositories;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import redis.clients.jedis.JedisPool;

@EnableScheduling
@ComponentScan(basePackages = {"com.tyqx.biz.*","com.tyqx.service.*"})
@SpringBootApplication(exclude = {HibernateJpaAutoConfiguration.class, MongoAutoConfiguration.class, MongoDataAutoConfiguration.class},scanBasePackages = "com.tyqx.biz.controller")
@ServletComponentScan
@MapperScan({"com.tyqx.mapper"})
@EnableTransactionManagement
@Import({
        JedisPool.class
})
@EnableMongoRepositories
@EnableAsync
public class BizApplication {

    public static void main(String[] args) {
        SpringApplication.run(BizApplication.class, args);
    }

}
